Programming the Raspberry Pi by Simon Monk
Author:Simon Monk
Language: eng
Format: epub
Publisher: McGraw-Hill Education
Published: 2021-07-15T00:00:00+00:00
Internet
As well as being full of web pages, the Internet is also a source of information for your programs rather than for viewing in a browser. Such web services are available for pretty much everything from currency rates and stock prices to weather forecasts. The software on the server for such web service is called an API (Application Programming Interface) and APIs generally use JSON as a way of communicating with your programs.
As an example of this, we are going to use a weather web service called weatherstack.com. In line with many such web services, you can use the web service for free as long as you donât make too many demands on it. However, you do normally have to register and make an account. weatherstack is no exception, so, to try out this example, you will need to register for an account at https://weatherstack.com/.
Not unreasonably, weatherstack likes to know whoâs using its API and so to access it from your programs you need to include your own personal key with each web request. Once you have registered, you can find your weatherstack key by clicking on the Dashboard button (Figure 6-3).
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
The Mikado Method by Ola Ellnestam Daniel Brolund(25279)
Hello! Python by Anthony Briggs(24320)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(23417)
Kotlin in Action by Dmitry Jemerov(22500)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(21952)
Dependency Injection in .NET by Mark Seemann(21834)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(20696)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(19513)
Grails in Action by Glen Smith Peter Ledbrook(18591)
Adobe Camera Raw For Digital Photographers Only by Rob Sheppard(17028)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(15836)
Secrets of the JavaScript Ninja by John Resig & Bear Bibeault(13683)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(11844)
Jquery UI in Action : Master the concepts Of Jquery UI: A Step By Step Approach by ANMOL GOYAL(11149)
A Developer's Guide to Building Resilient Cloud Applications with Azure by Hamida Rebai Trabelsi(10619)
Hit Refresh by Satya Nadella(9185)
The Kubernetes Operator Framework Book by Michael Dame(8560)
Exploring Deepfakes by Bryan Lyon and Matt Tora(8398)
Robo-Advisor with Python by Aki Ranin(8344)